package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by Ellis.Li on 2017/8/4.
 */

public class RefuelInfo  extends BaseModel<RefuelInfo>  {
    /**
     * refuel_total_amount : null
     * refuel_total_amount_format : ￥0.00元
     * refuel_total_count : 0
     */

    private Object refuel_total_amount;
    private String refuel_total_amount_format;
    private String refuel_total_count;

    public Object getRefuel_total_amount() {
        return refuel_total_amount;
    }

    public void setRefuel_total_amount(Object refuel_total_amount) {
        this.refuel_total_amount = refuel_total_amount;
    }

    public String getRefuel_total_amount_format() {
        return refuel_total_amount_format;
    }

    public void setRefuel_total_amount_format(String refuel_total_amount_format) {
        this.refuel_total_amount_format = refuel_total_amount_format;
    }

    public String getRefuel_total_count() {
        return refuel_total_count;
    }

    public void setRefuel_total_count(String refuel_total_count) {
        this.refuel_total_count = refuel_total_count;
    }

    @Override
    public RefuelInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            refuel_total_amount = jsonObject.optString("refuel_total_amount");
            refuel_total_amount_format = jsonObject.optString("refuel_total_amount_format");
            refuel_total_count = jsonObject.optString("refuel_total_count");
            return this;
        }
        return null;
    }
}
